<template>
  <!--1：图片可作为模块导入-->
  <img alt="Vue logo" :src="src">
  <HelloWorld msg="Welcome to Your Vue.js App"/>

  <ElRate v-model="value2"></ElRate> {{value2}}

  <ElRate :max="max" v-model="value1"></ElRate>{{value1}}
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

//3：css模块导入
import './assets/common.css'
//2：图片可作为模块导入
import logo from './assets/logo.png'
import ElRate from "@/components/ElRate.vue";

export default {
  name: 'App',
  components: {
    HelloWorld,
    ElRate
  },
  data() {
    return {
      //3：图片可作为模块导入
      src: logo,
      max: 6,
      value2:2,
      value1:1

    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
